/**
 * 
 */
package com.ssm.util;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.filter.OncePerRequestFilter;

/**
 * 
 * @author 危文涛<245108903@qq.com>
 * @version 2016年3月20日 上午10:55:36
 *
 */
public class SSMApiFilter extends OncePerRequestFilter {

	private String apiurl;
	public void setApiurl(String apiurl) {
		this.apiurl = apiurl;
	}


	@Override
	protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
			throws ServletException, IOException {
		String uri = request.getRequestURI();  
		if(uri.indexOf(apiurl)!=-1)//api接口
		{
			
		}
		doFilter(request, response, filterChain);
		
	}

}
